package com.ruoyi.ldzlsc.mapper;

import com.ruoyi.ldzlsc.domain.ScMaterialReturnDetail;

import java.util.List;

/**
 * 材料退库明细Mapper接口
 *
 * @author ldzl
 */
public interface ScMaterialReturnDetailMapper {

    /**
     * 新增材料退库明细
     *
     * @param scMaterialReturnDetail 材料退库明细
     * @return 结果
     */
    public int insertScMaterialReturnDetail(ScMaterialReturnDetail scMaterialReturnDetail);

    /**
     * 批量新增材料退库明细
     *
     * @param scMaterialReturnDetailList 材料退库明细列表
     * @return 结果
     */
    public int batchInsertScMaterialReturnDetail(List<ScMaterialReturnDetail> scMaterialReturnDetailList);

    /**
     * 查询材料退库明细
     *
     * @param materialReturnDetailId 材料退库明细主键
     * @return 材料退库明细
     */
    public ScMaterialReturnDetail selectScMaterialReturnDetailByMaterialReturnDetailId(Long materialReturnDetailId);

    /**
     * 根据退库单ID查询明细列表
     *
     * @param materialReturnId 退库单ID
     * @return 明细列表
     */
    public List<ScMaterialReturnDetail> selectScMaterialReturnDetailListByReturnId(Long materialReturnId);

    /**
     * 修改材料退库明细
     *
     * @param scMaterialReturnDetail 材料退库明细
     * @return 结果
     */
    public int updateScMaterialReturnDetail(ScMaterialReturnDetail scMaterialReturnDetail);

    /**
     * 删除材料退库明细
     *
     * @param materialReturnDetailId 材料退库明细主键
     * @return 结果
     */
    public int deleteScMaterialReturnDetailByMaterialReturnDetailId(Long materialReturnDetailId);
}
